post_install() {
  update-desktop-database -q
  gtk-update-icon-cache -q -t -f usr/share/icons/hicolor

  #this won't work, probably because it uses another user? or another env; says: xfce4-panel not found
#  xfce4-panel -r || echo "failed to restart xfce4 panel, tried: xfce4-panel -r"
}

post_upgrade() {
  post_install $1
}

post_remove() {
  update-desktop-database -q
  gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
}

op=$1
shift

$op $*
